<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>所有留言</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  







<table border="1" width="100%">
<tr>
<td align="center" width="10%">留言Id</td>
<td align="center" width="70%">留言标题</td>
<td align="center" width="10%">查看</td>
<td align="center" width="10%">删除</td>

</tr>
<s:iterator value="allMessage"> 
<tr>
<td align="center"><s:property value="messageId" /></td>
<td align="center"><s:property value="title" /></td>
<td align="center"><a href="<s:url action="MainShow" >
    <s:param name="messageId"><s:property value="messageId" /></s:param>
   </s:url>">查看</a> </td>
<td align="center"><a href="<s:url action="DeleteMessage1" >
    <s:param name="messageId"><s:property value="messageId" /></s:param>
    <s:param name="accountName"><s:property value="accountName" /></s:param>
   </s:url>">删除</a></td>
</tr>
</s:iterator>
</table>


  </body>
</html>
